create sample rest api